import request from '@/utils/request'

/** */
/**
 * 添加评论
 * @param {Object} data 评论数据
 * @returns 添加结果
 */
export const insertCommentService = (data) => {
  return request.post('/comment/add', data)
}

/**
 * 
 * @param {*} data 
 * @returns 
 */
export const getCommentService = (data) => {
  return request.get('/comment/pageQuery', {
    params: data
  })
}